DocumentReplace Method

Overload List

Replace(IContentElement, IContentElement) Replaces the specified content element, for example a span, a paragraph or a table, with another content element. The properties of the replaced element are preserved if the new element has no own properties.
Replace(IListString, IListString) Replaces all occurrences of the specified oldText with newText.
Replace(Image, String) Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.
Replace(String, AttributedText) Replaces all occurrences of the specified text with a copy of the specified span. The text before and after the replaced text keeps its formatting.
Replace(String, IParagraphContent) Replaces all occurrences of the specified text with a copy of the specified content, for example an image, a tab, a line break, a field or a hyperlink.
Replace(String, String) Replaces all occurrences of the specified oldText with newText in the whole document. The paragraphs, their styles and all other content of the paragraphs remain unchanged.
Replace(IContentElement, IContentElement, FindOptions) Replaces the specified content element with another content element.
Replace(IListString, IListString, FindOptions) Replaces all occurrences of the specified oldText with newText.
Replace(Image, String, Byte) Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.
Replace(String, AttributedText, FindOptions) Replaces all occurrences of the specified text with a copy of the specified span.
Replace(String, IParagraphContent, FindOptions) Replaces all occurrences of the specified text with a copy of the specified content.
Replace(String, IListAttributedText, FindOptions) Replaces all occurrences of the specified text with copies of the specified spans.
Replace(String, IListIParagraphContent, FindOptions) Replaces all occurrences of the specified text with copies of the specified content.
Replace(String, String, FindOptions) Replaces all occurrences of the specified oldText with newText.

See Also